import axios from "./request.js"


// 提交订单
export function fetchCommitOrder(orderData) {
    return axios.post('/commitorder',orderData)
}

// 获取用户订单列表
export function fetchUserOrder(user_id) {
    return axios.post(`/userorder/${user_id}`)
}

// 获取订单信息
export function fetchOrderInfo(order_id) {
    return axios.post('/getorder/' + order_id)
}

// 查询物流信息
export function fetchlogistics() {
    return axios.get('/kuaidi100/')
}